package cn.wolfcode.crm.query;

import com.alibaba.druid.util.StringUtils;
import lombok.Getter;
import lombok.Setter;

@Setter @Getter
public class QueryObject {
	private Integer currentPage = 1;
	private Integer pageSize = 3;
	private String keyword;
	
	public Integer getStart(){
		return (currentPage - 1)*pageSize;
	}

	public String getKeyword(){
		return StringUtils.isEmpty(keyword) ? null : keyword;
	}
}
